package org.example;

import org.example.ba03.SomeService;
import org.example.ba03.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppTest01 {
    @Test
    public void test01(){
        ApplicationContext ap = new ClassPathXmlApplicationContext("ApplicationContext.xml");
        SomeService service = (SomeService)ap.getBean("serviceba03");
        System.out.println(service);
        String r2 = service.doFirst("111",12);
        /*对于引用来说，即使中途改变返回值也不会改变代理类的返回值*/
        System.out.println(r2);
    }
}
